%% check if 2D or 3D processing is required

if ~isempty(zin)
    %% 3D processing
    marm3Dpointcloudplot;

    marm3Dregression;

    marm3Dsurfplot;

else
    %% 2D processing
    marm2Dpointcloudplot;

    marm2Dregression;

    marm2Dlineplot;
end